<include file="Public:_header" />
<body>
<include file="Public:top" />
<div class="main-container" id="main-container">
<script type="text/javascript">
    try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>
<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
    <span class="menu-text"></span>
</a>

<include file="Public:left" />
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>
        <!-- <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">{$apps.title}</a>
            </li>

            <li>
                <a href="#">图文回复</a>
            </li>
            <li class="active">回复</li>
        </ul> -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="搜索 ..." class="nav-search-input" id="nav-search-input" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <include file="InfoType:bar" />
                <div class="widget-box">
                    <div class="widget-header header-color-blue">
                        <h5 class="bigger lighter">
                            <i class="icon-table"></i>
                            微主页设置
                        </h5>
                    </div>
                    <div class="widget-body">
                        <div class="widget-main">
                        <form method="post" action="{:U('Member/Michome/update')}" class="form-horizontal" role="form">
                        <input type="hidden" name="id" value="{$vo.id}">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">主页名称</label>

                                <div class="col-sm-9">
                                    <input type="text" value="{$vo.title}" name="title" class="input-large" />
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">查询关键字</label>
                                <div class="col-sm-9">
                                    <input type="text" value="{$vo.keyword}" name="keyword" class="input-large" />
                                <span class="help-block">
                                    <span class="middle">调用微主页的查询关键字</span>
                                </span>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">联系电话</label>
                                <div class="col-sm-9">
                                    <input type="text" value="{$vo.phone}" name="phone" class="input-large" />
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">联系邮箱</label>
                                <div class="col-sm-9">
                                    <input type="text" value="{$vo.email}" name="email" class="input-large" />
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">行业</label>
                                <div class="col-sm-9">
                                    <select name="career" data="{$vo.career}">
                                        <option value="音乐影视">音乐影视</option><option value="休闲娱乐">休闲娱乐</option><option value="游戏">游戏</option><option value="网络服务应用">网络服务应用</option><option value="博客">博客</option><option value="网址导航">网址导航</option><option value="计算机软件硬件">计算机软件硬件</option><option value="数码及手机">数码及手机</option><option value="教学及考试">教学及考试</option><option value="医疗保健">医疗保健</option><option value="女性时尚">女性时尚</option><option value="社交网络和在线社区">社交网络和在线社区</option><option value="生活服务">生活服务</option><option value="房产家居">房产家居</option><option value="汽车">汽车</option><option value="交通旅游">交通旅游</option><option value="体育运动">体育运动</option><option value="投资金融">投资金融</option><option value="垂直行业">垂直行业</option><option value="新闻媒体">新闻媒体</option><option value="人文艺术">人文艺术</option><option value="小说">小说</option><option value="人才招聘">人才招聘</option><option value="网络购物">网络购物</option>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">地址</label>
                                <div class="col-sm-9">
                                    <input type="text" value="{$vo.addr}" name="addr" class="input-xxlarge" />
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">地理坐标</label>
                                <div class="col-sm-9">
                                    <input type="text" value="{$vo.lat}" name="lat" class="input-large" placeholder="地经度"/>
                                    <input type="text" value="{$vo.lng}" name="lat" class="input-large" placeholder="地纬度"/>
                                </div>
                            </div>
                            
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">展示图片</label>

                                <div class="col-sm-6">
                                <div class="input-group">
                                    <input type="text" value="{$vo.picurl}" name="picurl" class="input-large form-control" />
                                    <span to="picurl" class="input-group-addon upfile">
                                        <i class="icon-upload-alt"></i>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">说明</label>
                                <div class="col-sm-9">
                                    <textarea name="desc" class="autosize-transition form-control input-xxlarge">{$vo.desc}</textarea>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <volist name="tpllist" id="tpl">
                            <div class="pricing-span">
                                <div class="widget-box pricing-box-small">
                                    <div class="widget-header tplpreview header-color-grey tpl_{$tpl.tplname}">
                                        <h5 class="bigger lighter">{$tpl.tplname}</h5>
                                    </div>
                                    <div class="widget-body">
                                        <div class="widget-main no-padding">
                                            <img width="100%" height="200px;" src="{$tpl.preview}">
                                        </div>
                                        <div>
                                            <button type="button" tpl="{$tpl.tplname}" class="cktpl btn btn-block btn-default">
                                            <i class="icon-ok"></i>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            </volist>
                            <div class="clearfix"></div>
                            <hr />
                            <input type="hidden" name="tpl" value="{$vo.tpl}">
                            <button class="btn btn-info" type="submit">
                            <i class="icon-ok bigger-110"></i>保存</button>
                        </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<include file="Public:settings" />
</div>

</div>
<include file="Public:footer" />
<script type="text/javascript">
$(function(){
    var tplname = $('input[name=tpl]').val();
    if (tplname == "") tplname = 'default';
    $('.tpl_'+tplname).removeClass('header-color-grey');
    $('button[tpl='+tplname+']').addClass('btn-danger');
    $('.tpl_'+tplname).addClass('header-color-red');
    $('.cktpl').on('click',function(){
        //tpl_
        tplname = $(this).attr('tpl');
        $('.tplpreview').removeClass('header-color-red');
        $('.tpl_'+tplname).removeClass('header-color-grey');
        $('.tpl_'+tplname).addClass('header-color-red');
        $('.cktpl').removeClass('btn-danger');
        $(this).addClass('btn-danger');
        $('input[name=tpl]').val(tplname);
    })
})    
</script>
</body>
</html>
